﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using MG.HomeO2O.Model;
using MG.HomeO2O.DAL;

namespace MG.HomeO2O.BLL
{
   public  class DetailBLL
    {
       DetailDAL dal = new DetailDAL();

       /// <summary>
       /// 显示内容信息
       /// </summary>
       /// <returns></returns>
       public List<Detail> ShowDetail()
       {
           return dal.ShowDetail();
       }

         /// <summary>
       /// 根据编号显示内容信息
       /// </summary>
       /// <param name="id"></param>
       /// <returns></returns>
       public Detail DetailGetid(int id)
       {
           return dal.DetailGetid(id);
       }
       /// <summary>
       /// 删除
       /// </summary>
       /// <param name="id"></param>
       /// <returns></returns>
       public bool DeleteDetail(int id)
       {
           return dal.DeleteDetail(id);
       }
       /// <summary>
       /// 添加内容信息
       /// </summary>
       /// <param name="ss"></param>
       /// <returns></returns>
       public int AddDetail(Detail ss)
       {
          return dal.AddDetail(ss);
       }
       /// <summary>
       /// 修改内容信息
       /// </summary>
       /// <param name="ss"></param>
       /// <returns></returns>
       public int  UpdateDetail(Detail ss)
       {
           return dal.UpdateDetail(ss);
       }
       /// <summary>
       /// 根据标题查询信息内容
       /// </summary>
       /// <param name="s"></param>
       /// <returns></returns>
       public List<Detail> SelectDetail(Detail s)
       {
           return dal.SelectDetail(s);
       }
    }
}
